using UnityEngine;

public abstract class BaseItem
{
    [Header("基础属性")]
    public int itemID;
    public string displayName;
    [TextArea] public string description;
    public Sprite icon;
    public Sprite itemOnWorldSprite;
    public ItemType itemType;
    public int price;  //价格

    [Range(0, 1)]
    public float sellPercentage; //售出价格
    public Rarity rarity = Rarity.COMMON;
    
    public virtual string GetTooltipText()
    {
        return $"<b>{displayName}</b>\n{description}";
    }
}
